package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 资源表
 * @Author: jeecg-boot
 * @Date:   2020-02-11
 * @Version: V1.0
 */
@Data
@TableName("glr_resource")
public class GlrResource implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**文件名*/
	@Excel(name = "文件名", width = 15)
    private String fileName;
	/**文件路径*/
	@Excel(name = "文件路径", width = 15)
    private String filePath;
	/**文件类型*/
	@Excel(name = "文件类型", width = 15)
    private String fileType;
	/**文件大小*/
	@Excel(name = "文件大小", width = 15)
    private Integer fileSize;
	/**文件ID*/
	@Excel(name = "文件ID", width = 15)
    private String fileId;

	//雷拓需要的由雷拓服务接口返回的数据
	/**雷拓文件ID 原来TBRadioUpload tFileId*/
	@Excel(name = "雷拓文件ID", width = 15)
	private String rattopFileId;
	/**雷拓媒体ID 原来TBRadioMedia tMediaId*/
	@Excel(name = "雷拓媒体ID")
	private Long rattopMediaId; //媒体ID
	/**雷拓媒体时长 原来TBRadioMedia tMediaLength 这个用不到了*/
	//@Excel(name = "雷拓媒体时长")
	//private Long rattopMediaLength; //媒体时长 以秒为单位

	/**音柱厂家  1世邦音柱 2雷拓音柱*/
	@Dict(dicCode = "glr_yzgs")
	@Excel(name = "音柱厂家", width = 15)
	private String companyCode;

	/**md5*/
	@Excel(name = "md5", width = 15)
    private String fileMd5;
	/**播放时长*/
	@Excel(name = "播放时长", width = 15)
    private Integer filePlayTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;

	private String equipmentType;//所属设备
}
